<?php
/**
 * Sends the Expires HTTP 1.0 header.
 * @param int number of seconds from now when page expires
 */
 if (function_exists('session_cache_limiter'))
{
    session_cache_limiter("private, must-revalidate");
}

 header("Cache-control: private");
function setExpires($expires)
{
  header('Expires: ' . gmdate('D, d M Y H:i:s', time() + $expires) . 'GMT');
}

// Set the Expires header
setExpires(10000000000000);

echo "<font	color=red>start_debug</font>";
echo '<pre>';
echo "<font	color=green>";
print_r(time());
echo '</pre>';
echo "</font>";
echo "<font	color=red>end_debug</font>";

// Display a page
echo 'This page will self destruct in 10 seconds<br />';
echo 'The GMT is now ' . gmdate('H:i:s') . '<br />';
echo '<a href="' . $_SERVER['PHP_SELF'] .
  '">View Again</a><br />';




ob_start("ob_gzhandler");
header("Content-type: text/javascript; charset: UTF-8");
//header("Cache-Control: no-cache");

$etag = "abcd";

if ($_SERVER['HTTP_IF_NONE_MATCH'] == $etag)
{
	header('Etag:'.$etag, true, 304);
	exit;
}
else
{
	header('Etag:'.$etag);	
}

readfile('js.js');

?>